/**
 * Created by Administrator on 2017/10/17.
 */
var mongoose = require("mongoose");
var mongoosePaginate = require('mongoose-paginate');

var schema = new mongoose.Schema({
    fieldname:String,
    originalname:String,
    encoding:String,
    mimetype:String,
    destination:String,
    filename:String,
    path:String,
    size:Number,
    cateId:String,
	data:{type:Date,default:Date.now}
});
schema.plugin(mongoosePaginate);

var upload = mongoose.model('Upload',schema,"upload");

module.exports= upload;